package switchviz.core.signal;

import switchviz.core.SwitchVizException;
import switchviz.core.data.IData;

public class OIDSignal implements ISignal
{
	private OIDSignalDataModel _signalmodel = null; 
	private IData _data = null;

	public OIDSignal(String oid) throws SwitchVizException
	{
		_signalmodel = new OIDSignalDataModel(oid);
	}
	
	public String getAliasName() 
	{
		return _signalmodel.getAlias();
	}

	public IData getData() 
	{
		return _data;
	}


	public String getOid() throws SwitchVizException 
	{
		return _signalmodel.getOid();
	}

	public int getPort() 
	{

		return _signalmodel.getPort();
	}

	public boolean isPortRequired() throws SwitchVizException 
	{

		return false;
	}

	public void setAliasName(String name) 
	{
		_signalmodel.setAlias(name);
	}

	public void setData(IData data) 
	{
		_data = data;
		_signalmodel = null;
	}

	public void setPort(int port) 
	{
		_signalmodel.setPort(port);
	}

}
